class Person:
    def __init__(self, name, age):
        self._name = name
        self._age = age

    def show(self):
        return f'{self._name}今年{self._age}岁了'


# 单继承
class Student(Person):
    def __init__(self, name, age, no):
        super().__init__(name, age)
        self._no = no


class Animal:
    def __init__(self, fruit):
        self._fruit = fruit

    def eat(self):
        return f'动物吃{self._fruit}'


class Son(Person, Animal):
    def __init__(self, name, age, fruit):
        Person.__init__(self, name, age)
        Animal.__init__(self, fruit)


# 多继承
son = Son('李四', 3, '香蕉')
print(son.show())
print(son.eat())

